<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:apabb="http://apabb.org.br/jsf"
	template="../template/template.xhtml">

	<ui:define name="nucleoBase">

		<h:form id="formBem">

			<div style="position: relative; left: 11px; font-size: 120%;">
				<h2>Manter Requisicao</h2>
			</div>
			<hr size="3" style="left: 10px; background-color: #000080;" />

			<div id="idEditaRequisicao">
				<div style="position: relative; left: 11px;">
					<h:messages
						errorStyle="color: red; font-family: Arial; 
								 position: relative; left: 10px; font-size: 12px; font-weight: bold;"
						infoClass="info" showSummary="true" />
				</div>
				<br />
				<fieldset styleClass="form"
					style="background-color: rgb(240, 250, 255)">
					<br />
					<h:panelGrid columns="2" width="43%">
					
						<h:column>
							<h:outputLabel for="usuario" value="Usuario: " />
						</h:column>
						<h:column>
							<h:outputText value="#{requisicaoView.requisicao.usuario.nomeUsuario}" />
						</h:column>
						
						<h:column>
							<h:outputLabel for="Setor" value="Setor: " />
						</h:column>
						<h:column>
							<h:outputText value="#{requisicaoView.requisicao.usuario.setor.nomeSetor}" />
						</h:column>
						
						<h:column>
							<h:outputLabel for="tipo_patrimonio" value="Tipo Patrimonio: " />
						</h:column>
						<h:column>
							<h:outputText value="#{requisicaoView.requisicao.descTipoPatrimonio}" />
						</h:column>
						
						<h:column>
							<h:outputLabel for="justificativa" value="Justificativa: " />
						</h:column>
						<h:column>
							<h:inputTextarea value="#{requisicaoView.requisicao.justificativa}" name="justificativa"
								required="true" disabled="true"/>
						</h:column>
						
						<h:column>
							<h:outputLabel for="data"
								value="Data: " title="data" />
						</h:column>
						<h:column>
							<rich:calendar styleClass="contractRich"
								label="Data" disabled="true"
								value="#{requisicaoView.requisicao.dataReqisicao}"
								datePattern="dd/MM/yyyy" enableManualInput="true"
								oninputkeyup="formataMascara('##/##/####', this)"
								oninputchange="formataMascara('##/##/####', this)"
								maxlength="10">
							</rich:calendar>
						</h:column>
						
					</h:panelGrid>

					<span style="color: red;">(*)Campo de preenchimento
						obrigatório.</span> <br />

					<div align="right">

						<table border="1" width="20%">
							<tr>
								<td><h:commandButton action="#{requisicaoView.voltar}"
										id="btnVoltar" immediate="true" value="   Voltar  "
										 /></td>
								<td>&nbsp;&nbsp;&nbsp;</td>
								<td></td>
							</tr>

						</table>
					</div>

				</fieldset>


			</div>

			<apabb:popupConfirmacao componentView="#{requisicaoView}"
				form="formBem" />

		</h:form>
	</ui:define>
</ui:composition>
